home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / game / shoot / ADoomPPC_src.lha / ADoomPPC_src / d_ticcmd.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.5 KB  |  61 lines

  1. // Emacs style mode select   -*- C++ -*- 
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. //    System specific interface stuff.
  19. //
  20. //-----------------------------------------------------------------------------
  21.  
  22.  
  23. #ifndef __D_TICCMD__
  24. #define __D_TICCMD__
  25.  
  26. #include "doomtype.h"
  27.  
  28. #ifdef __GNUG__
  29. #pragma interface
  30. #endif
  31.  
  32. #ifdef __SASC
  33. #pragma options align=mac68k
  34. #endif
  35.  
  36. // The data sampled per tick (single player)
  37. // and transmitted to other peers (multiplayer).
  38. // Mainly movements/button commands per game tick,
  39. // plus a checksum for internal state consistency.
  40. typedef struct
  41. {
  42.     char     forwardmove;    // *2048 for move
  43.     char     sidemove;    // *2048 for move
  44.     short     angleturn;    // <<16 for angle delta
  45.     short     consistancy;    // checks for net game
  46.     byte     chatchar;
  47.     byte     buttons;
  48. }  ticcmd_t;
  49.  
  50. #ifdef __SASC
  51. #pragma options align=power
  52. #endif
  53.  
  54.  
  55. #endif
  56. //-----------------------------------------------------------------------------
  57. //
  58. // $Log:$
  59. //
  60. //-----------------------------------------------------------------------------
  61.